package com.lhy.common.web.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

/**
 * SearchObject
 */
@Validated
@Data
public class SearchObject {

    @JsonProperty("condition")
    @Schema(description = "与前一个条件的连接关系")
    private ConditionEnum condition = ConditionEnum.AND;

    @JsonProperty("comparator")
    @Schema(description = "比较器枚举")
    private ComparatorEnum comparator = null;

    @JsonProperty("field")
    @Schema(description = "字段名")
    private String field = null;

    @JsonProperty("value")
    @Schema(description = "字段值")
    private String value = null;


}
